package com.hy.ssm.bean;

import java.util.Objects;

/**
 * @Auther: HuYang
 * @Date: 2022/11/10 - 11 - 10 - 19:58
 * @Description: com.yc.snack.entity
 * @version: 1.0
 */
public class TypeInfo {
    private Integer tno;
    private String tname;
    private Integer status;

    @Override
    public String toString() {
        return "TypeInfo{" +
                "tno=" + tno +
                ", tname='" + tname + '\'' +
                ", status=" + status +
                '}';
    }


    public Integer getTno() {
        return tno;
    }

    public void setTno(Integer tno) {
        this.tno = tno;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof TypeInfo)) return false;
        TypeInfo typeInfo = (TypeInfo) o;
        return Objects.equals(tno, typeInfo.tno) && Objects.equals(tname, typeInfo.tname) && Objects.equals(status, typeInfo.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(tno, tname, status);
    }
}
